home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tk / update.z / update
Encoding:
Text File  |  1998-10-30  |  2.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. uuuuppppddddaaaatttteeee((((3333TTTTkkkk))))                                                        uuuuppppddddaaaatttteeee((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      update - Process pending events and/or when-idle handlers
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      uuuuppppddddaaaatttteeee ?iiiiddddlllleeeettttaaaasssskkkkssss?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      This command is used to bring the entire application world ``up to
  17.      date.''  It flushes all pending output to the display,  waits for the
  18.      server to process that output and return errors or events, handles all
  19.      pending events of any sort (including when-idle handlers), and repeats
  20.      this set of operations until there are no pending events, no pending
  21.      when-idle handlers, no pending output to the server, and no operations
  22.      still outstanding at the server.
  23.  
  24.      If the iiiiddddlllleeeettttaaaasssskkkkssss keyword is specified as an argument to the command, then
  25.      no new events or errors are processed;  only when-idle idlers are
  26.      invoked.  This causes operations that are normally deferred, such as
  27.      display updates and window layout calculations, to be performed
  28.      immediately.
  29.  
  30.      The uuuuppppddddaaaatttteeee iiiiddddlllleeeettttaaaasssskkkkssss command is useful in scripts where changes have been
  31.      made to the application's state and you want those changes to appear on
  32.      the display immediately, rather than waiting for the script to complete.
  33.      Most display updates are performed as idle handlers, so uuuuppppddddaaaatttteeee iiiiddddlllleeeettttaaaasssskkkkssss
  34.      will cause them to run.  However, there are some kinds of updates that
  35.      only happen in response to events, such as those triggered by window size
  36.      changes; these updates will not occur in uuuuppppddddaaaatttteeee iiiiddddlllleeeettttaaaasssskkkkssss.
  37.  
  38.      The uuuuppppddddaaaatttteeee command with no options is useful in scripts where you are
  39.      performing a long-running computation but you still want the application
  40.      to respond to user interactions;  if you occasionally call uuuuppppddddaaaatttteeee then
  41.      user input will be processed during the next call to uuuuppppddddaaaatttteeee.
  42.  
  43.  
  44. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  45.      event, flush, handler, idle, update
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.